package org.jeecgframework.web.cgreport.service.core;

import java.util.List;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.cgreport.entity.core.CgreportConfigHeadEntity;
import org.jeecgframework.web.cgreport.entity.core.CgreportConfigParamEntity;

import java.io.Serializable;

import org.jeecgframework.web.cgreport.entity.core.CgreportConfigItemEntity;

/**
 * Demo class
 *
 * @author admin
 * @date 2016/10/31
 */
public interface CgreportConfigHeadServiceI extends CommonService {

    @Override
    public <T> void delete(T entity);

    /**
     * 添加一对多
     */
    public void addMain(CgreportConfigHeadEntity cgreportConfigHead,
                        List<CgreportConfigItemEntity> cgreportConfigItemList, List<CgreportConfigParamEntity> cgreportConfigParamList);

    /**
     * 修改一对多
     */
    public void updateMain(CgreportConfigHeadEntity cgreportConfigHead,
                           List<CgreportConfigItemEntity> cgreportConfigItemList, List<CgreportConfigParamEntity> cgreportConfigParamList);

    public void delMain(CgreportConfigHeadEntity cgreportConfigHead);

    /**
     * 默认按钮-sql增强-新增操作
     *
     * @param t
     * @return
     */
    public boolean doAddSql(CgreportConfigHeadEntity t);

    /**
     * 默认按钮-sql增强-更新操作
     *
     * @param t
     * @return
     */
    public boolean doUpdateSql(CgreportConfigHeadEntity t);

    /**
     * 默认按钮-sql增强-删除操作
     *
     * @param t
     * @return
     */
    public boolean doDelSql(CgreportConfigHeadEntity t);
}
